package com.lxg.service.impl;

import com.lxg.dao.ResourceDao;
import com.lxg.service.ResourcesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 陆小根
 * date: 2022/04/26
 * Description:
 */
@Service
public class ResourcesServiceImpl implements ResourcesService {

  private ResourceDao resourceDao;

  @Autowired
  public ResourcesServiceImpl(ResourceDao resourceDao) {
    this.resourceDao = resourceDao;
  }

  @Override
  public boolean openURL(String url, String password) {
    return resourceDao.readResource(url, password);
  }
}
